package com.lytxmd.boxtest.base;


public abstract class BasePresenter<T extends BaseView> {
    public T mView;
    public BasePresenter(){}
    public BasePresenter(T view){
        //view不能为null
        if (view == null) {
            throw new NullPointerException("view can't be null");
        }
        this.mView = view;
    }



    public void detach(){
        mView = null;
    }
}
